package com.pilates

import com.pilates.types.TypePresenca;

public class Presenca {
	
	static belongsTo = [aula:Aula,matricula:Matricula]
	TypePresenca presenca = TypePresenca.PRESENTE
	
	@Override
	public String toString() {
		return aula.toString()+ " - "+matricula.toString()+" - "+presenca.toString();
	}

	static mapping = {
		sort "aula"
	}
	
	static constraints = {
		aula(nullable:false)
		matricula(nullable:false)
		presenca(nullable: false)
	}
}
